//
//  RGMeViewModel.h
//  RedGrass
//
//  Created by wukong on 2019/2/18.
//  Copyright © 2019年 hongcaosp. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "RGMeViewProtocol.h"
#import "RGRecommendVideoModel.h"
#import "RGRecommentListModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface RGMeViewModel : NSObject


-(instancetype) initWithProtocol:(id<RGMeViewProtocol>)protocol;

@property (strong, nonatomic) RGRecommendVideoModel *currentVideoModel;

-(void)reInitProtocol;

//喜欢，点赞
-(void) changeFavoriteStautswithIndexPath:(NSIndexPath *)path vedioModel:(RGRecommendVideoModel *)model;

//获取评论列表,更多评论,首次
-(void) gainVideoRecommentListWithIndexPath:(NSIndexPath *)path isGainMore:(BOOL)isGainMore isShowLoading:(BOOL)isShowLoading vedioModel:(RGRecommendVideoModel *)model;

//刷新评论列表
-(void) gainVideoRecommentListWithIsGainMore:(BOOL)isGainMore;

//主评论点赞
-(void) changeMainCommentFavoriteStautswithChosedIndex:(NSInteger)chosedIndex;

//子评论点赞
-(void) changeChildCommentFavoriteStautswithChosedIndex:(NSIndexPath*)path;

//发表主评论
-(void) addMainCommentWithContent:(NSString *)content;

//发表子评论
-(void) addChildCommentWithContent:(NSString *)content chosedIndexPath:(NSIndexPath *)path chosedIndex:(NSInteger)chosedIndex;

//转发视频
-(void) shareVideoWithContent:(NSString *)content chosedIndex:(NSInteger)index;

-(void) pushToChatVcWithChosedVedioIndex:(NSInteger) index;

-(void) pushToPersonalVcWithChosdeVedioIndex:(NSInteger)index;

//分享
-(void) shareToWeChatWithChosedVedioIndex:(NSInteger)index;

//下载视频
-(void) downLoadVedioWithChosedVedioIndex:(NSInteger)index;

//更新播放量
-(void) updateVeidoPlayCountsWithChosedVedioId:(NSInteger)ID;

@end

NS_ASSUME_NONNULL_END
